package com.grass.cropTradingCenter.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.grass.cropTradingCenter.pojo.entity.MiniShop;
import com.grass.cropTradingCenter.pojo.entity.MiniUser;
import com.grass.cropTradingCenter.pojo.entity.ShippingAddress;
import com.grass.cropTradingCenter.pojo.vo.user.FollowOrUnFollowShop;
import com.grass.cropTradingCenter.pojo.vo.user.LoginVo;
import com.grass.cropTradingCenter.pojo.vo.user.RegisterVo;
import com.grass.cropTradingCenter.pojo.vo.user.SendUserLoginVo;

import java.util.List;


/**
* @author zipan
* @description 针对表【mini_user】的数据库操作Service
* @createDate 2024-01-23 19:41:54
*/
public interface MiniUserService extends IService<MiniUser> {

    void sendEmailLogin(SendUserLoginVo vo);

    void sendEmailRegister(SendUserLoginVo vo);

    String login(LoginVo vo);

    String register(RegisterVo vo);

    String findPassword(RegisterVo vo) throws InterruptedException;

    MiniUser getUserInfo();

    void modify(MiniUser user);

    void addOrUpdateAddress(ShippingAddress vo);

    List<ShippingAddress> getAddress();

    void deleteAddress(int id);

    ShippingAddress getAddressById(int id);

    MiniShop getShopByShopId(int shopId);

    void followOrUnFollowShop(FollowOrUnFollowShop vo);

    List<MiniShop> startShopList();
}
